#include "mystdio.h"

const char* filename = "./log.txt";

int main()
{
    myfile* fp = my_fopen(filename, "w");
    if(fp == NULL) return 1;
    char* s = "abcdef\n";
    my_fwrite(fp, s, strlen(s));
    my_fclose(fp);

    return 0;
}

// int main()
// {
//     char* a = "abcdf\n";//6个字符，即斜杠n也算
//     int len = strlen(a);
//     printf("%d\n", len);
// }